package com.softeem.score;

import com.softeem.score.common.log.annotation.EnableLogAspect;
import com.softeem.score.manager.properties.MinioProperties;
import com.softeem.score.manager.properties.SmsProperties;
import com.softeem.score.manager.properties.UserAuthProperties;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableAsync  //开启 Spring 的异步任务支持
@EnableLogAspect  //自定义或第三方日志切面支持的注解
@EnableScheduling  //开启 Spring 的定时任务调度功能
@SpringBootApplication
@MapperScan("com.softeem.score.manager.mapper")
@EnableConfigurationProperties(value = {UserAuthProperties.class, MinioProperties.class, SmsProperties.class})
//@EnableConfigurationProperties(value = {MinioProperties.class})
public class ManagerApplication {
    public static void main(String[] args) {
        SpringApplication.run(ManagerApplication.class, args);
    }

}